﻿<UserControl
    x:Class="GComp.Apps.EasyStock.Controls.HistoryDiagram"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:GComp.Apps.EasyStock.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    
    <Grid Background="White">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="10*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Canvas Name="canvas" Margin="4" Grid.Row="1" Grid.Column="1" Background="#DFFFFFFF">
            <Line Name="xAxis" X1="0" Y1="80" X2="200" Y2="80" Stroke="#FF202020" Visibility="Collapsed" StrokeThickness="4" />
            <Line Name="yAxis" X1="0" Y1="80" X2="0" Y2="0" Stroke="#FF202020" Visibility="Collapsed" StrokeThickness="4" />
            <Polyline Name="curve" Stroke="#ff202020" Points="0,1" Visibility="Collapsed" />
        </Canvas>

        <StackPanel Grid.Row="2" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Center" Margin="21,0,3,0" Background="#FFB9B8B8">
            <StackPanel.Resources>
                <Style TargetType="RadioButton">
                    <Setter Property="FontSize" Value="16" />
                    <Setter Property="Margin" Value="4" />
                </Style>
            </StackPanel.Resources>

            <RadioButton Name="rbLastWeek" Content="last week" IsChecked="True" Checked="OnRadioButtonChecked" Foreground="Black" />
            <RadioButton Name="rbLastMonth" Content="last month" Checked="OnRadioButtonChecked" Foreground="Black" />
            <RadioButton Name="rbLast3Months" Content="last 3 months" Checked="OnRadioButtonChecked" Foreground="Black" />
            <RadioButton Name="rbLastYear" Content="last year" Checked="OnRadioButtonChecked" Foreground="Black" />
            <!--<RadioButton Name="rbLast3Years" Content="last 3 years" Checked="OnRadioButtonChecked" Foreground="Black" />-->
        </StackPanel>
        <TextBlock Name="tbMax" Margin="4" Grid.Row="1" Text="Max" VerticalAlignment="Top" Foreground="Black" Style="{StaticResource SubtitleTextStyle}" />
        <TextBlock Name="tbMin" Margin="4" Grid.Row="1" Text="Min" VerticalAlignment="Bottom" Foreground="Black" Style="{StaticResource SubtitleTextStyle}" />
        <TextBlock x:Name="tbNoValues" Text="No values received" VerticalAlignment="Center" HorizontalAlignment="Center" Grid.ColumnSpan="3" Grid.RowSpan="3" Foreground="Black" Style="{StaticResource SubtitleTextStyle}" Visibility="Collapsed" />
    </Grid>
</UserControl>
